CREATE TABLE [dbo].[DnnProduct_PortalSettings]
(
[PortalID] [int] NOT NULL,
[SettingName] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[SettingValue] [nvarchar] (2000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[CreatedByUserID] [int] NULL,
[CreatedOnDate] [datetime] NULL,
[LastModifiedByUserID] [int] NULL,
[LastModifiedOnDate] [datetime] NULL,
[CultureCode] [nvarchar] (10) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[DnnProduct_PortalSettings] ADD CONSTRAINT [PK_DnnProduct_PortalSettings] PRIMARY KEY CLUSTERED  ([PortalID], [SettingName], [CultureCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[DnnProduct_PortalSettings] ADD CONSTRAINT [FK_DnnProduct_PortalSettings_DnnProduct_Portals] FOREIGN KEY ([PortalID]) REFERENCES [dbo].[DnnProduct_Portals] ([PortalID]) ON DELETE CASCADE
GO
